﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Defilade
{
    public class Latitude : Coordinate
    {
        /// <summary>
        /// The number of meters in 1 degree latitude
        /// </summary>
        private const double METERS_PER_SECOND_LAT = 16.7;

        /// <summary>
        /// Creates a new Latitude with the values from a string ecoded as 'DD.MM.SS'
        /// </summary>
        /// <param name="coordinateString"></param>
        public Latitude(String coordinateString) : base(coordinateString) { }

        /// <summary>
        /// Creates a new Latitude with the values [0.0.0]
        /// </summary>
        public Latitude() : base() { }

        /// <summary>
        /// Creates a new Latitude with the specified degrees, minutes and seconds
        /// </summary>
        public Latitude(double degrees, double minutes, double seconds) : base(degrees, minutes, seconds) { }

        protected override double MetresPerSecond()
        {
            return METERS_PER_SECOND_LAT;
        }
    }
}
